package com.dingyh.shopwebbackground.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Tolerate;

/**
 * <p>
 * 
 * </p>
 *
 * @author dingyuhan
 * @since 2023-02-21
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
public class Payouts implements Serializable {

    @Tolerate
    public Payouts(){
    }

    private static final long serialVersionUID=1L;

    private String id;

    /**
     * 1: 商家抽成; 2: 买家充值; 3: 广告投放;
     */
    private String source;

    private BigDecimal money;

    private Long timeadd;

    /**
     * 商家到账时间
     */
    private Long timearrival;

    /**
     * {
    key: '1',
    value: '商家抽成',
    state: [
      { key: '1', value: '订单进行中' },
      { key: '2', value: '订单已结束，商家抽成已到账' },
    ],
  },
  {
    key: '2',
    value: '买家充值',
    state: [{ key: '1', value: '买家充值已到账' }],
  },
  {
    key: '3',
    value: '广告投放',
    state: [
      { key: '1', value: '商家已申请' },
      { key: '2', value: '申请已审批，金额已到账' },
    ],
  },
     */
    private String state;

    @TableField(exist = false)
    private String month;

}
